#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

int main(int argc, char *argv[]) {
    int i = 0, s;
    scanf("%d", &s);
    while (s) {
        i++;
        s = s / 10;
    }
    printf("%d", i);
    return 0;
}